<!--  -->
<template>
  <div>新闻</div>
</template>

<script setup>
 import {useRoute} from 'vue-router'
 const route=useRoute();
 console.log(route.params.cat);
 
</script>
<style scoped>
</style>